package com.sea.supply.mapper;

import com.sea.supply.entity.Produce;
import com.sea.supply.entity.ProduceDetail;
import com.sea.supply.entity.ProducePayment;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 *  采购单接口
 * @author 陈鸿飞
 * <br/>
 */
public interface ProducePaymentMapper {
    /**
     * 新增
     * @param producePayment
     * @return
     */
    int insert(ProducePayment producePayment);

    int delete(Integer id);

    /**
     * 更新
     * @param producePayment
     * @return
     */
    int update(ProducePayment producePayment);

    /**
     * 查找明细
     * @param produceId
     * @return
     */
    List<ProducePayment> findByProduceId(Integer produceId);

    /**
     * 条件查询
     * @param producePayment
     * @return
     */
    List<ProducePayment> findByCnd(ProducePayment producePayment);

    /**
     * 查询指定
     * @param id
     * @return
     */
    ProducePayment findById(Integer id);

    /**
     * 更新发票状态
     * @param createPlanNo
     * @return
     */
    Integer updateBillStatus(String createPlanNo);

    ProducePayment findByProducePayment(ProducePayment producePayment);
}